package com.zxy.basic.model.entity;


import com.alibaba.fastjson.annotation.JSONField;
import com.zxy.basic.enums.Sex;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class StudentDO implements Serializable {

    //    public StudentDO(Integer id, String cnname){
//        System.out.println(id+"-->"+cnname);
//    }
    private Integer id;

    @JSONField(serialize = false)
    private String cnname;

    private Sex sex;
    private Date birthday;

    private Integer selfcardId;

    private String note;

    private StudentSelfcardDO selfcard;


    private List<StudentLectureDO> studentLectureList;

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public List<StudentLectureDO> getStudentLectureList() {
        return studentLectureList;
    }

    public void setStudentLectureList(List<StudentLectureDO> studentLectureList) {
        this.studentLectureList = studentLectureList;
    }

    public StudentSelfcardDO getSelfcard() {
        return selfcard;
    }

    public void setSelfcard(StudentSelfcardDO selfcard) {
        this.selfcard = selfcard;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCnname() {
        return cnname;
    }

    public void setCnname(String cnname) {
        this.cnname = cnname == null ? null : cnname.trim();
    }


    public Sex getSex() {
        return sex;
    }

    public void setSex(Sex sex) {
        this.sex = sex;
    }

    public Integer getSelfcardId() {
        return selfcardId;
    }

    public void setSelfcardId(Integer selfcardId) {
        this.selfcardId = selfcardId;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }
}